home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / DeveloperInterfaces / CIncludes / SearchProcedureHeader.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-15  |  1.2 KB  |  57 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SearchProcedureHeader.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Written by:    Kevin Aitken
  7.  
  8.     Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <3>     8/10/93    KBA        Removed fStaticDataHdl field from SearchProc parameter block
  13.                                     record.
  14.          <2>     6/21/93    KBA        Added fCallBackProcPtr field to SearchProcedurePBRec struct.
  15.          <1>      4/1/93    KBA        first checked in
  16.  
  17. */
  18.  
  19. #ifndef __SearchProcedureHeader__
  20. #define __SearchProcedureHeader__
  21.  
  22. #ifndef __Types__
  23. #include <Types.h>
  24. #endif
  25.  
  26.  
  27. #ifndef __FileSpecs__
  28.  
  29. typedef struct {
  30.     short         vRefNum;
  31.     long         parID;
  32.     Str63         name;
  33.     short        fReferenceID;
  34. } FoundFileRec, *FoundFileArrayPtr, **FoundFileArrayHdl;
  35.  
  36. #endif
  37.  
  38. typedef struct{
  39.     ProcPtr                fCallBackProcPtr;
  40.     short                fTargetVRefNum;
  41.     long                fTargetFolderDirID;
  42.     short                fSystemVRefNum;
  43.     long                fSystemBlessedDirID;
  44.     long                fRefCon;
  45.     OSType                fFileSpecType;
  46.     OSType                fFileSpecCreator;
  47.     long                fFileSpecCrDate;
  48.     Str255                fFileSpecPath;
  49.     FoundFileArrayHdl    fFoundFilesArray;
  50. } SearchProcedurePBRec, *SearchProcedurePBPtr;
  51.  
  52. typedef enum {  kFatalSearchError = -1, kSearchSuccessful = 0, kCancelSearchAndInstallation = 1 } SearchResult;
  53.  
  54. SearchResult    FileSearchRoutine( SearchProcedurePBPtr );
  55.  
  56.  
  57. #endif